package com.yunmai.library.util;

public enum EnumDateFormatter {

    /**
     * formatter : yyyy-MM-dd
     */
    DATE_STR(1, "yyyy-MM-dd"),
    /**
     * formatter : yyyyMMdd
     */
    DATE_NUM(2, "yyyyMMdd"),
    /**
     * formatter : yyyyMMdd
     */
    DATE_NUM_YEAR(2, "yy"),
    /**
     * formatter : yyyy-MM-dd HH:mm:ss
     */
    DATE_TIME_STR(3, "yyyy-MM-dd HH:mm:ss"),
    /**
     * formatter : yyyyMMddHHmmss
     */
    DATE_TIME_NUM(4, "yyyyMMddHHmmss"),
    /**
     * formatter :yyyy-MM-dd-HH
     */

    DATE_HOUR_STR(5, "yyyy-MM-dd-HH"),
    /**
     * formatter : yyyyMMddHH
     */
    DATE_HOUR_NUM(6, "yyyyMMddHH"),
    /**
     * formatter : HH:mm:ss
     */
    DATE_TIME_HOUR_STR(7, "HH:mm:ss"),
    /**
     * formatter : HHmmss
     */
    DATE_TIME_HOUR_NUM(8, "HHmmss"),
    /**
     * formatter : yyyy-MM-dd HH:mm:ss:SS
     */
    DATE_TIME_LONG_STR(9, "yyyy-MM-dd HH:mm:ss:SS"),
    /**
     * formatter :yyyyMMddHHmmssSS
     */
    DATE_TIME_LONG_NUM(10, "yyyyMMddHHmmssSS"),

    /**
     * formatter : yy
     */
    DATE_NUM_2(11, "yy"),

    /**
     * formatter :yyyy
     */
    DATE_YEAR_NUM(20, "yyyy"),

    /**
     * formatter :MM
     */
    DATE_MOTH_NUM(21, "MM"),
    /**
     * formatter :dd
     */
    DATE_DAY_NUM(22, "dd"),
    /**
     * formatter :dd
     */
    DATE_WEEK_NUM(23, "E"),
    /**
     * formatter :HH:mm
     */
    DATE_TIME_HOUR_SHORT_STR(24, "HH:mm"),
    /**
     * formatter :MM月dd日
     */
    DATE_MONTH_NUM(1, "MM月dd日"),
    /**
     * formatter : yyyyMMddHH
     */
    DATE_MINUTE_NUM(25, "yyyyMMddHHmm"),

    DATE_TIME_MM_STR(26, "yyyy-MM-dd HH:mm"),

    DATE_TIME_YYYYMM_STR(26, "yyyy年MM月");


    private int val;
    private String formatter;

    EnumDateFormatter(int val, String formatter) {
        this.val = val;
        this.formatter = formatter;
    }

    public int getVal() {
        return val;
    }

    public String getFormatter() {
        return formatter;
    }

}
